package com.zc.im.seqsvr.service;

import com.zc.im.seqsvr.domain.MaxSeq;
import com.zc.im.seqsvr.domain.UserSeq;
import com.zc.im.seqsvr.repository.UserSeqRepository;
import reactor.core.publisher.Mono;

/**
 * Project：im
 * Date：2022/4/13
 * Time：18:50
 * Description：MaxSeq service层接口
 *
 * @author Challen.Zhang
 * @version 1.0
 */
public interface MaxSeqService extends AbstractBaseService<MaxSeq, Long, UserSeqRepository> {


    /**
     * 对对应key新增步长
     *
     * @param key      key
     * @param stepSize 步长
     * @return 是否成功
     */
    Mono<Integer> addStepSize(Long key, Long stepSize);
}
